package com.grape.oauth.code.service;

import org.springframework.security.core.userdetails.UserDetails;


public interface IPhoneUserDetailService {

    /**
     * 根据手机号获取用户信息
     * @param phone 手机号码
     * @param code 验证码
     * @return  用户信息
     */

    UserDetails loadUserByPhone(String phone, String code);

}
